<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/code.css" />
        <script src="js/jquery-3.3.1.min.js"></script>
         <script src="js/config.js"></script>
         <script src="js/toast.js"></script>
		<title>二维码</title>
	</head>
	<body>
		<div class="page">
			<div class="top">
				
				<div>
					<h4>我的二维码</h4>
				</div>
			</div>
			
			<div class="content">
				
				<div class="avatar">
					<img class="headImg" src="./images/avatar.png" alt="" />
				</div>
				<div class="username">暂无昵称</div>
				
				<div class="code">
					<div class="top"></div>
					<div class="right"></div>
					
					<div class="bottom"></div>
					
					<div class="left"></div>
					<img class="codeImg" src="./images/code.png" alt="" />
					
				</div>
				
				<div class="tip">扫一扫加入大钞市</div>
				
			</div>
			
		</div>
		
		
		<script>
			var nick = window.localStorage.getItem("nickName");
			var twoCode = localStorage.getItem("code");
			var headImg = localStorage.getItem("headImg");
			if(nick == 'undefined'){
				nick = "暂无昵称"
			}
			
			if(headImg == 'undefined'){
				headImg='./images/avatar.png'
			}
			console.log("nickName:"+nick);
			console.log("二维码："+twoCode);
			console.log("头像："+ headImg);
			$(".headImg").eq(0).attr("src",headImg)
			$(".username").eq(0).html(nick)
			$(".codeImg").eq(0).attr("src",twoCode)
			
			
		</script>
	</body>
</html>
